package com.tsmti.basicdata.entity;

import com.tsmti.core.common.entity.BaseDataEntity;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;

/**
 * @Package：com.tsmti.lab.entity
 * @Class：SysLog
 * @Description： TODO
 * @Author：dcd
 * @Date：Created in 2018/8/22 上午10:58
 * @Company:
 * @Version：
 * @Modified By:
 */
@Entity
@Table(name = "PIMS_SYSLOG")
@DynamicInsert
@DynamicUpdate
public class SysLog extends BaseDataEntity<Long> {
    /**
     * id
     */
    private Long id;
    /**
     * 导入内容
     */
    private String inputData;
    /**
     * 输出内容
     */
    private String outputData;
    /**
     * 导入结果0 失败 1成功
     */
    private Integer result;
    /**
     * 导入模块类型名称
     */
    private String funName;
    /**
     * 回执id
     */
    private String blid;
    /**
     * 病人id
     */
    private String patientId;
    /**
     * 住院号
     */
    private String patientCode;
    /**
     * 对应表名
     */
    private String tableName;
    /**
     * 对应表主键
     */
    private String tablePid;

    /**
     * id
     */

    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_PIMS_SYSLOG")
    @SequenceGenerator(name = "SEQ_PIMS_SYSLOG", sequenceName = "SYSLOG_SEQUENCE", allocationSize = 1)
    @Override
    public Long getId() {
        return id;
    }

    @Override
    public void setId(Long id) {
        this.id = id;
    }
    @Basic
    @Column(name = "INPUT_DATA")
    public String getInputData() {
        return inputData;
    }

    public void setInputData(String inputData) {
        this.inputData = inputData;
    }
    @Basic
    @Column(name = "OUTPUT_DATA")
    public String getOutputData() {
        return outputData;
    }

    public void setOutputData(String outputData) {
        this.outputData = outputData;
    }

    public Integer getResult() {
        return result;
    }

    public void setResult(Integer result) {
        this.result = result;
    }
    @Basic
    @Column(name = "FUN_NAME")
    public String getFunName() {
        return funName;
    }

    public void setFunName(String funName) {
        this.funName = funName;
    }

    public String getBlid() {
        return blid;
    }

    public void setBlid(String blid) {
        this.blid = blid;
    }
    @Basic
    @Column(name = "PATIENT_ID")
    public String getPatientId() {
        return patientId;
    }

    public void setPatientId(String patientId) {
        this.patientId = patientId;
    }
    @Basic
    @Column(name = "PATIENT_CODE")
    public String getPatientCode() {
        return patientCode;
    }

    public void setPatientCode(String patientCode) {
        this.patientCode = patientCode;
    }
    @Basic
    @Column(name = "TABLE_NAME")
    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }
    @Basic
    @Column(name = "TABLE_PID")
    public String getTablePid() {
        return tablePid;
    }

    public void setTablePid(String tablePid) {
        this.tablePid = tablePid;
    }
}
